from flask import Flask, jsonify, abort, request
import blueprint
api=blueprint.MyBlueprint("soil",__name__)

@api.RequestMapping("/OISER_ca_A1",methods=["POST"])
def OISER_ca_A1( ED_c, EF_a, BW_a, OSIR_a, EF_c, ABS_o, AT_ca, BW_c, ED_a, OSIR_c):
    return (((OSIR_c * ED_c * EF_c) / (BW_c) + (OSIR_a * ED_a * EF_a) / (BW_a)) * ABS_o) / (AT_ca) * pow(10,-6)
@api.RequestMapping("/OISER_nc_A2")
def OISER_nc_A2(ED_c, EF_c, BW_c, ABS_o, OSIR_c, AT_nc):
    return (OSIR_c * ED_c * EF_c * ABS_o) / (BW_c * AT_nc) * pow(10,-6)
